package com.smartview.jboss.spring.dto;

import net.sf.json.JSONObject;


public class NewsDTO implements BasicDTO{
	
	private String title;
	private String link;
	private String description;
	private String source;
	private String img;
	private String pubDate;

	
	
	public String getPubDate() {
		return pubDate;
	}


	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}


	public String getImg() {
		return img;
	}


	public void setImg(String img) {
		this.img = img;
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}


	public String getLink() {
		return link;
	}


	public void setLink(String link) {
		this.link = link;
	}


	public String getDescription() {
		return description;
	}


	public void setDescription(String description) {
		this.description = description;
	}


	public String getSource() {
		return source;
	}


	public void setSource(String source) {
		this.source = source;
	}


	public JSONObject toJson()
	{
		JSONObject jObj = new JSONObject();
		jObj.element("title", title);
		jObj.element("link", link);
		jObj.element("description", description);
		jObj.element("source", source);
		jObj.element("img", img);
		jObj.element("pubDate", pubDate);
	
		
		return jObj;
	}
/*	
	public String toString()
	{
		return "<ID : " + id + ", PASS : " + password + ">";
	}
*/
}
